import request from '@/utils/request'

export const getRoleList = () =>
  request({
    url: '/admin/role/select2',
    method: 'get'
  })

export const getUserList = (roleId: number) =>
  request({
    url: '/admin/user/select2',
    method: 'get',
    params: {
      roleId: roleId
    }
  })
